package com.chenyaowei.happyhub.service.GoodsService;

import com.github.pagehelper.PageInfo;
import com.chenyaowei.happyhub.pojo.GoodsPojo.Good;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodService {
    List<Good> selectGoodsByKeyword(String keyword);
    List<Good> selectGoodsByType(String type);
    List<Good> selectGoodsByAd();
    List<Good> selectGoods();
    PageInfo<Good> selectGoodsByAd(int pageNum, int pageSize);
    PageInfo<Good> selectGoods(int pageNum, int pageSize);
    Good selectGoodById(int id);
    List<Good> selectGoodsBySlideAd();
    void updateSalesVolume(int salesVolume,float salesPrice, String id);
    List<Good> selectGoodsByTypeAd(String type);
    PageInfo<Good> selectGoodsByKeyword(int pageNum, int pageSize, String keyword);
    PageInfo<Good> selectGoodsByType(int pageNum, int pageSize, String type);
    List<Good> selectAdminGood();
    void updateGood( String goodId,String goodHeader,
                    String goodMeta,String goodImage,
                    String goodType,String goodDescription,
                    String isAd,String isTypeAd,String isSlideAd);
    void deleteGood( String id);
    PageInfo<Good> searchGood(int pageNum, int pageSize, String type, String keyword, String sort, String status);



}
